﻿namespace AnyOffice.Model
{
    using System;

    public class RmsLendData
    {
        protected int _allow;
        protected object _allowTime;
        protected int _fileId;
        protected int _lendId = -1;
        protected DateTime _lendTime = DateTime.Now;
        protected object _returnTime;
        protected string _userId = string.Empty;

        public int Allow
        {
            get
            {
                return this._allow;
            }
            set
            {
                this._allow = value;
            }
        }

        public DateTime AllowTime
        {
            get
            {
                return (DateTime) this._allowTime;
            }
            set
            {
                this._allowTime = value;
            }
        }

        public bool AllowTimeIsNull
        {
            get
            {
                return (this._allowTime == null);
            }
            set
            {
                if (value)
                {
                    this._allowTime = null;
                }
            }
        }

        public int FileId
        {
            get
            {
                return this._fileId;
            }
            set
            {
                this._fileId = value;
            }
        }

        public int LendId
        {
            get
            {
                return this._lendId;
            }
            set
            {
                this._lendId = value;
            }
        }

        public DateTime LendTime
        {
            get
            {
                return this._lendTime;
            }
            set
            {
                this._lendTime = value;
            }
        }

        public DateTime ReturnTime
        {
            get
            {
                return (DateTime) this._returnTime;
            }
            set
            {
                this._returnTime = value;
            }
        }

        public bool ReturnTimeIsNull
        {
            get
            {
                return (this._returnTime == null);
            }
            set
            {
                if (value)
                {
                    this._returnTime = null;
                }
            }
        }

        public string UserId
        {
            get
            {
                return this._userId;
            }
            set
            {
                this._userId = value;
            }
        }
    }
}

